const Service = require('egg').Service
class UserService extends Service {
  async addUser(name, password) {
    let user = await this.ctx.model.User.create({
      user_name: name,
      user_password: password
    })
    return {
      name: user.user_name,
      password: user.user_password
    }
  }
}
module.exports = UserService